<?php

# Inclusion des  classes de gestion
	require("class/app/object.class.php");
	require("class/app/person.class.php");
	
Class noDBTest {
	public static function getSomeObjets(){
		$unObjet1 = new Object();
		$unObjet2 = new Object();
		$unObjet3 = new Object();

		
		
		$unObjet1->initialisation(1, "labelObject1", "pics/objects/1.jpg", 1, 1, 1, 100);
		$unObjet2->initialisation(2, "labelObject2", "pics/objects/2.jpg", 2, 1, 2, 100);
		$unObjet3->initialisation(3, "labelObject3", "pics/objects/3.jpg", 2, 1, 2, 101);
		
		$listObjets = array($unObjet1,$unObjet2,$unObjet3);
		
		return $listObjets;
		}
public static function getAnObjet(){
		$unObjet1 = new Object();
		$unObjet1->initialisation(1, "labelObject1", "pics/objects/1.jpg", 1, 1, 1, 100);
		return $unObjet1;
}
		
public static function getAPerson(){
		$unePersonne1 = new Person();
		$unePersonne1->initialisation(1, "nomPerson1", "prenomPerson1", "1967-08-03", "adresse1", "0297414141", "e1", 0, 11, "NCC08WAF6QXZ36SY38DCT9OI", 1);
		return $unePersonne1;
}

public static function getACity(){
		$aCity = new City();
		$aCity->initialisation(1, "Vannes", "56000", "56111", "56", "Morbihan");
		return $aCity;
}

public static function getSomePersons(){
		$unePersonne1 = new Person();
		$unePersonne2 = new Person();
		$unePersonne3 = new Person();

		
		
		$unePersonne1->initialisation(1, "nomPerson1", "prenomPerson1", "1967-08-03", "adresse1", "0297414141", "e1", 0, 11, "NCC08WAF6QXZ36SY38DCT9OI", 1);
		$unePersonne2->initialisation(2, "nomPerson2", "prenomPerson2", "1967-08-03", "adresse1", "0297414141", "e2", 1, 22, "NCC08WAF6QXZ36SY38DCT9OI",1);
		$unePersonne3->initialisation(3, "nomPerson3", "prenomPerson3","1967-08-03", "adresse1",  "0297414141", "e3", 1, 33, "NCC08WAF6QXZ36SY38DCT9OI", 1);
	
		
		$listObjets = array($unePersonne1,$unePersonne2,$unePersonne3);
		
		return $listObjets;
		}
		
		
		
}


?>